FROM        openjdk:8u252
LABEL       maintainer="swyan<211874876@qq.com>"
ENV APP 	inspect-line-2.0.jar
ENV PORT 	20250 20251
WORKDIR     /home/service/
VOLUME 		/home/service/
COPY		$APP /home/service/inspectLine2.jar
RUN         echo "Asia/Shanghai" > /etc/timezone
CMD 	    ["-Xms2048m","-Xmx2048m","/home/service/inspect-line-2.0.jar"]
ENTRYPOINT 	["java", "-jar"]
EXPOSE      $PORT